/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import java.util.*;

/**
 * TODO: need to be fixed!!!!!
 * @author Andy
 */
@Entity(name = "GoodsReceipt")
public class GoodsReceiptEntity extends DataObjectEntity  implements Serializable {

    private Collection<String> rawMaterials;
    private Collection<Integer> quantity;
    //private RawMaterialsPurchaseOrderEntity rawMaterialsPO;

    public GoodsReceiptEntity() {
        super();
    }

    public GoodsReceiptEntity(Collection<String> rawMaterials, Collection<Integer> quantity, SystemUserEntity createdBy) {
        super(createdBy);
        this.rawMaterials = rawMaterials;
        this.quantity = quantity;
    }

    public Collection<Integer> getQuantity() {
        return quantity;
    }

    public void setQuantity(Collection<Integer> quantity) {
        this.quantity = quantity;
    }

    public Collection<String> getRawMaterials() {
        return rawMaterials;
    }

    public void setRawMaterials(Collection<String> rawMaterials) {
        this.rawMaterials = rawMaterials;
    }

    @Override
    public String childToString() {
        return "GoodsReceiptEntity{" + "rawMaterials=" + rawMaterials + ", quantity=" + quantity + '}';
    }
    
}
